package org.halk.oracle_demo.controller;

import org.halk.oracle_demo.entity.UserInfoTest;
import org.halk.oracle_demo.service.MyTestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author halk
 * @Date 2023/5/18 15:26
 */
@RestController
public class MyTestController {

    @Resource
    private MyTestService myTestService;

    @GetMapping("/get")
    public List<UserInfoTest> get() {
        return myTestService.get();
    }

    @GetMapping("/create")
    public void create() {
        myTestService.create();
    }

}
